<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>博客首页</title>
</head>
<body>
    <h1>{{ .Title }}</h1>
    <ul>
        {{ range $key, $value := .Posts }}
        <li><a href="/post/{{ $value.Id }}">{{ $value.Title }}</a></li>
        {{ end }}
    </ul>
</body>
</html>